﻿<Window x:Class="Mengsk.ProxyDelivery.App.UI.Order.OrderEditWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="订单编辑" Height="300" Width="1200" Loaded="Window_Loaded">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*">
            </RowDefinition>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <GroupBox Header="商品信息" Padding="0" Grid.Row="0">
            <DataGrid Name="dgvOrderGoods"  Padding="0"  AutoGenerateColumns="False" CanUserAddRows="False" CanUserDeleteRows="False" MinHeight="100"
                      SelectionMode="Extended" SelectionUnit="CellOrRowHeader">
                <DataGrid.Columns>
                    <DataGridTextColumn Header="厂家名称" Binding="{Binding Vendor}" Width="*"/>
                    <DataGridTextColumn Header="商品货号" Binding="{Binding Number}" Width="*"/>
                    <DataGridTextColumn Header="商品版本" Binding="{Binding Edtion}" Width="*"/>
                    <DataGridTextColumn Header="商品颜色" Binding="{Binding Color}" Width="*"/>
                    <DataGridTextColumn Header="商品尺码" Binding="{Binding Size}" Width="*"/>
                    <DataGridTextColumn Header="商品数量" Binding="{Binding Count}" Width="*"/>
                </DataGrid.Columns>
            </DataGrid>
        </GroupBox >
        <StackPanel Orientation="Horizontal" Grid.Row="1">
            <Button Name="btnAdd" Content="添加商品" Margin="3" VerticalAlignment="Center" Width="60" HorizontalAlignment="Left" Click="btnAdd_Click"/>
            <Button Name="btnDelete" Content="删除商品" Margin="3" VerticalAlignment="Center" Width="60" HorizontalAlignment="Left" Click="btnDelete_Click"/>
            <CheckBox Name="chkPeiJian" Margin="3" Content="配件订单"  VerticalAlignment="Center" Width="80" HorizontalAlignment="Center"/>
            <Button Name="btnSave" Content="保存" Margin="160,3,3,3" VerticalAlignment="Center" Width="60" HorizontalAlignment="Center" Click="btnSave_Click"/>
        </StackPanel>
    </Grid>
</Window>
